import sys
from PyQt4 import QtGui 
import server

app = QtGui.QApplication(sys.argv)
mainWdg = server.ServerWidget(None)
app.setApplicationName("Servidor")
mainWdg.show();
sys.exit(app.exec_())
 
"""
    import random
    
    import wmi
    import win32api
    import win32con
    from PyQt4 import QtGui 
    from PyQt4 import QtCore
    


    import graphics
    app = QtGui.QApplication(sys.argv)
    #graphics.createWidget()
    #graphics.progexec()
    
    mainWdg = QtGui.QWidget()
    hello = QtGui.QPushButton("Hello world!", mainWdg)
    hello.show()
    
    icon = QtGui.QIcon();
    icon.addFile("C:\Documents and Settings\Administrador\workspace\pyprova\src\star.png")
    
    bye = QtGui.QPushButton(mainWdg)
    bye.setIcon( QtGui.QIcon(icon))
    
    mainLayout = QtGui.QBoxLayout (QtGui.QBoxLayout.TopToBottom, mainWdg )
    mainLayout.addWidget(hello)
    mainLayout.addWidget(bye)
    mainWdg.setLayout( mainLayout )
    
    mainWdg.show()
    
    sys.exit(app.exec_())
"""

